cmake_minimum_required(VERSION 3.16)
project(compiler)

set(CMAKE_CXX_STANDARD 17)

include_directories(
    include
    include/ast
    include/frontend
    include/ir
    include/printer
    include/ds
    include/test
    include/optimizer
    include/arm
)

aux_source_directory(./src srcs)
aux_source_directory(./src/ast srcs)
aux_source_directory(./src/frontend srcs)
aux_source_directory(./src/ir srcs)
aux_source_directory(./src/printer srcs)
aux_source_directory(./src/ds srcs)
aux_source_directory(./src/test srcs)
aux_source_directory(./src/optimizer srcs)
aux_source_directory(./src/arm srcs)


add_executable(compiler main.cpp ${srcs})
